package com.qidianit.mes.pro.controller;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.pro.Bom;
import com.qidianit.mes.pojo.qc.CommonDefect;
import com.qidianit.mes.pro.service.BomService;
import com.qidianit.mes.pro.service.CommonDefectService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@RestController
@RequestMapping("/bom")
public class BomController {

    @Autowired
    private BomService bomService;

    @GetMapping("/page")
    public Result<PageInfo<Bom>> list(
            Bom bom,
            @RequestParam(defaultValue = "1") int pageNum,
            @RequestParam(defaultValue = "10") int pageSize) {
        return bomService.selectList(bom, pageNum, pageSize);
    }

}

